from functools import reduce

a = [1, 2, 3, 4, 5, 6, 7]
b = list(filter(lambda x: x > 2, a))
print(b)

c = [1, 2, 3]
d = list(map(lambda x: x, c))
print(d)

e = list(map(lambda x: x + 1, c))
print(e)

f = [4, 5, 6]
g = list(map(lambda x, y: x + y, c, f))
print(g)

h = reduce(lambda x, y: x + y, [2, 3, 4], 1)
print(h)

for i in zip((1, 2, 3), (4, 5, 6)):
    print(i)

dicta = {'a': 'aa', 'b': 'bb'}
dictb = zip(dicta.values(), dicta.keys())
print(dictb)
print(dict(dictb))


